/*using System;
using System.Collections.Generic;
using System.Reflection;
using KenEgozi.Com.Domain.Aggregates.Blogroll;
using KenEgozi.Com.Domain.Aggregates.Post;
using KenEgozi.Com.Domain.Interfaces.Repositories;
using KenEgozi.Com.Domain.Projections;
using KenEgozi.Com.Weblog.Controllers;
using KenEgozi.Com.Weblog.Services;
using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
using Rhino.Mocks;

namespace KenEgozi.Com.Weblog.Tests
{
	[TestFixture]
	public class PostsControllerFixture : BaseControllerTest<PostsController>
	{
		#region setup stuff
		private IPostsRepository postsRepository;
		private ICachedItemsService cachedItemsService;
		[SetUp]
		public override void SetUp()
		{
			// boring
			base.SetUp();
			// boring (@Ayende: no offense)
			postsRepository = mocks.DynamicMock<IPostsRepository>();
			cachedItemsService = mocks.DynamicMock<ICachedItemsService>();
			

			// interesting ...
			controller = new PostsController(new DefaultCodeGeneratorServices postsRepository, cachedItemsService);
			PrepareController(controller, "", "Posts", "");
		}
		#endregion

		#region List()
		[Test]
		public void List_Always_SetPropertyBagParameter()
		{
			ICollection<Post> posts = new List<Post>();
			Expect.Call(postsRepository.FindRecent()).Return(posts);
			LastCall.Message("FindRecent() was not called");

			mocks.ReplayAll();

			controller.List();

			Assert.That(controller.PropertyBag["posts"], Is.EqualTo(posts), "posts parameter was not set properly");
		}
		#endregion
		#region List(year, month)
		[Test]
		public void ListWithYearAndMonth_Always_Work()
		{
			int year = 2007; int month = 1;
			ICollection<Post> posts = new List<Post>();
			Expect.Call(postsRepository.FindInArchive(year, month)).Return(posts);
			LastCall.Message("FindInArchive() was not called");

			mocks.ReplayAll();

			controller.List(year, month);

			Assert.That(controller.PropertyBag["posts"], Is.EqualTo(posts), "posts parameter was not set properly");
		}
		#endregion

		#region SetLayoutParameters()
		[Test]
		public void SetLayoutParameters_Always_ReadDataFromCacheService()
		{
			ICollection<ArchiveEntry> archive = new List<ArchiveEntry>();
			ICollection<BlogrollEntry> blogroll = new List<BlogrollEntry>();
			ICollection<TagCloudEntry> tagCloud = new List<TagCloudEntry>();

			Expect.Call(cachedItemsService.GetArchive()).Return(archive);
			Expect.Call(cachedItemsService.GetBlogroll()).Return(blogroll);
			Expect.Call(cachedItemsService.GetTagCloud()).Return(tagCloud);

			mocks.ReplayAll();

			RunProc(controller, "SetLayoutParameters");

			Assert.That(controller.PropertyBag["archive"], Is.EqualTo(archive), "archive parameter was not set properly");
			Assert.That(controller.PropertyBag["blogRoll"], Is.EqualTo(blogroll), "blogroll parameter was not set properly");
			Assert.That(controller.PropertyBag["tagCloud"], Is.EqualTo(tagCloud), "tagCloud parameter was not set properly");
		}
		#endregion


	}
}
*/